package com.IntelligentCommunity.community.controller;

import com.IntelligentCommunity.common.core.domain.R;
import com.IntelligentCommunity.community.domain.RealDoor;
import com.IntelligentCommunity.community.service.IRealDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：ZHP
 * @Package：com.IntelligentCommunity.community.controller
 * @Project：IntelligentCommunity
 * @name：RealDoorController
 * @Date：2024/8/1 11:21
 * @Filename：RealDoorController
 */
@RestController
@RequestMapping("/door")
public class RealDoorController {
    @Autowired
    private IRealDoorService doorService;

    @PostMapping("/add")
    public R add(@RequestBody RealDoor door){
        doorService.add(door);
        return R.ok();
    }
}
